﻿<%@ Page Language="C#" MasterPageFile="~/Admin/Master/AdminMaster.Master" AutoEventWireup="true"
    CodeBehind="PurchaseOrderAdd_Finish.aspx.cs" Inherits="HZ.DrugTrade.Web.Admin.ProcureManage.PurchaseOrderAdd_Finish"
    Title="无标题页" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="tabnav">
        <ul>
            <li><a href="javascript:void(0);">新建采购单</a></li>
        </ul>
    </div>
    <div class="maincon">
        <div id="note">
            采购单基本信息</div>
        <div id="note2">
        </div>
        <table>
            <tr>
                <th>
                    <asp:Label ID="lblPurchaseOrderName" runat="server" Text="采购单名称："></asp:Label>
                </th>
                <td colspan="2" align="center">
                    <asp:Label runat="server" ID="lblPurseOrder"></asp:Label>
                </td>
            </tr>
            <tr>
                <th>
                    <asp:Label ID="lblHospital" runat="server" Text="采购医疗机构："></asp:Label>
                </th>
                <td colspan="2" >
                    <asp:Label ID="txtHospital" runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
                <th align="right">
                    <asp:Label ID="lblAmount" runat="server" Text="采购总金额："></asp:Label>
                </th>
                <td colspan="2" >
                    <asp:Label ID="txtAmount" runat="server"></asp:Label>
                </td>
            </tr>
        </table>
    </div>
    <div class="listcon">
        <div class="note">
            采购单产品明细</div>
        <div class="note2">
        </div>
        <asp:GridView ID="gvwPurseOrderDetail" runat="server" AutoGenerateColumns="False"
            OnRowDataBound="gvwPurseOrderDetail_RowDataBound" Width="100%" EmptyDataText="暂未添加任何产品明细！">
            <Columns>
                <asp:TemplateField HeaderText="序号">
                    <ItemTemplate>
                        <%#Container.DataItemIndex + 1 + AspNetPager1.PageSize * (AspNetPager1.CurrentPageIndex-1) %></ItemTemplate>
                    <HeaderStyle Width="30px" />
                </asp:TemplateField>
               <%-- <asp:BoundField DataField="ProductName" HeaderText="通用名" />--%>
                <asp:BoundField DataField="GoodsName" HeaderText="产品名称" />
                <asp:BoundField DataField="CompanyName_SC" HeaderText="生产企业" />
                <asp:BoundField DataField="CompanyName_PS" HeaderText="配送企业" />
                <asp:BoundField DataField="PurchaseCount" HeaderText="数量" />
                <asp:BoundField DataField="Price" HeaderText="采购价" DataFormatString="{0:N4}"/>
                <asp:BoundField DataField="Amount" HeaderText="金额" />
                <asp:BoundField DataField="DistributeCount" HeaderText="已配送" />
                <asp:BoundField DataField="WarehouseCount" HeaderText="已入库" />
                <asp:BoundField DataField="ReturnCount" HeaderText="已退货" />
                <asp:TemplateField HeaderText="配送状态">
                    <ItemTemplate>
                        <asp:Literal runat="server" ID="ltlOrderDetailState" Text='<%# Eval("OrderDetailState") %>'></asp:Literal>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
        </asp:GridView>
    </div>
     <div class="page">
    <webdiyer:AspNetPager ID="AspNetPager1" runat="server" OnPageChanged="AspNetPager1_OnPageChanged">
    </webdiyer:AspNetPager>
    </div>
    <div class="listctrlq">
        <hz:HzButton ID="btnAdd" runat="server" CssClass="btn" Width="120px" Text="继续新建采购单" onclick="btnAdd_Click" />
        &nbsp;
        <hz:HzButton ID="btnFinish" runat="server" Text="结束新建采购单"  CssClass="btn" Width="120px" 
            onclick="btnFinish_Click"/>
    </div>
</asp:Content>
